package com.wx.tnsenterprise.service;

import com.wx.common.api.CommonResult;
import com.wx.tnsenterprise.service.impl.FeignBaseDataServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 林建权
 * @version 1.0
 * @date 2020/8/6 19:32
 */
@Component
@FeignClient(value = "tns-base-data",fallback = FeignBaseDataServiceImpl.class)
public interface FeignBaseDataService {
    @GetMapping("/job/findById")
    CommonResult findById(@RequestParam(value = "id") Integer id);

}
